﻿using mfLogger;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace mfLogger.Test
{
    
    
    /// <summary>
    ///This is a test class for mfDebugAppenderTest and is intended
    ///to contain all mfDebugAppenderTest Unit Tests
    ///</summary>
    [TestClass()]
    public class mfDebugAppenderTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for mfDebugAppender Constructor
        ///</summary>
        [TestMethod()]
        public void mfDebugAppenderConstructorTest()
        {
            string name = "DebugAppender"; 
            mfDebugAppender target = new mfDebugAppender(name);

            Assert.AreEqual(name, target.Name);
        }

        /// <summary>
        ///A test for mfDebugAppender Constructor
        ///</summary>
        [TestMethod()]
        public void mfDebugAppenderConstructorTest_Simple()
        {
            mfDebugAppender target = new mfDebugAppender();
        }

        /// <summary>
        ///A test for IsEnabled
        ///</summary>
        [TestMethod()]
        public void IsEnabledTest()
        {
            mfDebugAppender target = new mfDebugAppender(); 
            bool expected = false; 
            bool actual;

            target.IsEnabled = expected;
            actual = target.IsEnabled;

            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Level
        ///</summary>
        [TestMethod()]
        public void LevelTest()
        {
            mfDebugAppender target = new mfDebugAppender();
            enumLogMessageLevel expected = enumLogMessageLevel.Info;
            enumLogMessageLevel actual;

            target.Level = expected;
            actual = target.Level;

            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Name
        ///</summary>
        [TestMethod()]
        public void NameTest()
        {
            mfDebugAppender target = new mfDebugAppender();
            string expected = "DebugAppender";
            string actual;

            target.Name = expected;
            actual = target.Name;

            Assert.AreEqual(expected, actual);
        }
    }
}
